package org.blogwu.learn.algorithm.链表学习;

public class Main {

    public static void main(String[] args) {
        List<Integer> list = new LinkedList<>();
        list.add(20);
        list.add(0, 10);
        list.add(30);
        list.add(list.size(), 40);
        // [10, 30, 40]

        list.remove(1);

        System.out.println(list);
    }

}
